package com.wjj.sixinone.common.pojo.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;
@Data
public class LogExcel {
    @ExcelProperty(value = "id", index = 0)
    private String id;
    @ExcelProperty(value = "ip", index = 1)
    private String ip;
    @ExcelProperty(value = "用户名", index = 2)
    private String username;
    @ExcelProperty(value = "请求时间", index = 3)
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @ExcelProperty(value = "请求方法", index = 4)
    private String method;
    @ExcelProperty(value = "请求地址", index = 5)
    private String requestUrl;
    @ExcelProperty(value = "错误响应码", index = 6)
    private int code;
    @ExcelProperty(value = "异常信息", index = 7)
    private String exceptionMessage;
}
